package com.huang.eduorder.client;

import com.hunag.utils.orderVo.CourseWebVoOrder;
import com.hunag.utils.orderVo.EduCourseOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
@FeignClient("service-edu")
public interface EduClient {

    //根据课程id查询课程信息
    @PostMapping("/eduservice/courseFront/getCourseInfoOrder/{courseId}")
    public CourseWebVoOrder getCourseInfoOrder(@PathVariable(value = "courseId") String courseId);

    @PostMapping("/eduservice/courseFront/getBuyCourseList")
    public List<EduCourseOrder> getBuyCourseList(@RequestBody List<String> list);
}
